<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>CF优选IP - Cloudflare优选IP测速与优选工具</title>
    <meta name="description" content="CF优选IP工具。动态获取Cloudflare优选IP，CloudflareSpeedTest测速。">
    <meta name="keywords" content="Cloudflare, CF优选IP工具, CF优选IP, Cloudflare优选IP, CloudflareSpeedTest测速">
    <meta name="google-site-verification" content="A3l8C-0bF2Kpgnk0AwiEgoyudoZGT2xB3H1ublh65kA" />
    <meta name="baidu-site-verification" content="codeva-HvnxelEijE" />
    <style>
        /* CSS样式保持不变 */
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;
        }

        #clock {
            text-align: center;
            font-size: 18px;
            margin: 0; /* 去掉时钟的上下边距 */
            padding: 0; /* 去掉时钟的内边距 */
        }

        .github-btn {
            text-align: center;
            margin-left: 0; /* 去掉左边距 */
        }

        table {
            width: 90%;
            margin: 20px auto;
            border-collapse: collapse;
            background: #fff;
            border: 1px solid #ddd;
        }

        caption {
            caption-side: top;
            font-size: 20px;
            font-weight: bold;
            padding: 10px 0;
            color: #333;
        }

        th, td {
            padding: 10px;
            text-align: center;
            border: 1px solid #ddd;
        }

        th {
            background-color: #f8f8f8;
        }

        td a {
            color: #1E9FFF;
            text-decoration: none;
        }

        td a:hover {
            text-decoration: underline;
        }

        .highlight-icon {
            font-size: 20px;
            color: #1E9FFF;
            vertical-align: middle;
        }

        .recommended {
            font-weight: bold;
            color: #FF5722;
        }

        /* 设置父容器为 flexbox */
        .container {
            display: flex;
            justify-content: center; /* 水平居中对齐 */
            align-items: center; /* 垂直对齐 */
            margin: 0; /* 移除上下边距 */
            padding: 10px; /* 移除内边距 */
            gap: 5px; /* 设置两个元素之间的间隙 */
        }

        /* 防止 iframe 激活状态时出现边框 */
        .github-btn iframe {
            border: none;
        }
    </style>
</head>
<body>

<div class="container">
    <p id="clock">当前时间：<span id="time"></span></p>
    <div class="github-btn">
        <iframe src="https://ghbtns.com/github-btn.html?user=zhixuanwang&repo=cf-speed-dns&type=star&count=true"
                frameborder="0" scrolling="0" width="150" height="20" title="GitHub"></iframe>
    </div>
</div>

<table>
    <caption>Cloudflare优选IP测速数据</caption>
    <thead>
    <tr>
        <th>IP地址</th>
        <th>已发送</th>
        <th>已接收</th>
        <th>丢包率</th>
        <th>平均延迟</th>
        <th>下载速度</th>
        <th>测速时间</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td class="recommended">
            <span class="highlight-icon">★</span>
            <a href="https://zh-hans.ipshu.com/ipv4/104.18.19.225" target="_blank">104.18.19.225</a>
        </td>
        <td>4</td>
        <td>4</td>
        <td>0.0%</td>
        <td>141.0</td>
        <td style="color: green; font-weight: bold;">432.89MB/s</td>
        <td>2025-07-04 11:35:34</td>
    </tr>
    <tr>
        <td class="recommended">
            <span class="highlight-icon">★</span>
            <a href="https://zh-hans.ipshu.com/ipv4/104.21.225.88" target="_blank">104.21.225.88</a>
        </td>
        <td>4</td>
        <td>4</td>
        <td>0.0%</td>
        <td>142.0</td>
        <td style="color: green; font-weight: bold;">31.99MB/s</td>
        <td>2025-07-04 11:46:24</td>
    </tr>
    <tr>
        <td class="recommended">
            
            <a href="https://zh-hans.ipshu.com/ipv4/104.18.125.215" target="_blank">104.18.125.215</a>
        </td>
        <td>4</td>
        <td>4</td>
        <td>0.0%</td>
        <td>143.0</td>
        <td style="color: green; font-weight: bold;">27.97MB/s</td>
        <td>2025-07-04 11:46:24</td>
    </tr>
    <tr>
        <td class="recommended">
            
            <a href="https://zh-hans.ipshu.com/ipv4/104.17.253.117" target="_blank">104.17.253.117</a>
        </td>
        <td>4</td>
        <td>4</td>
        <td>0.0%</td>
        <td>140.0</td>
        <td style="color: green; font-weight: bold;">24.19MB/s</td>
        <td>2025-07-04 12:36:26</td>
    </tr>
    <tr>
        <td class="recommended">
            
            <a href="https://zh-hans.ipshu.com/ipv4/104.18.25.119" target="_blank">104.18.25.119</a>
        </td>
        <td>4</td>
        <td>4</td>
        <td>0.0%</td>
        <td>147.0</td>
        <td style="color: green; font-weight: bold;">21.17MB/s</td>
        <td>2025-07-04 14:11:30</td>
    </tr>
    <tr>
        <td class="recommended">
            
            <a href="https://zh-hans.ipshu.com/ipv4/104.18.30.237" target="_blank">104.18.30.237</a>
        </td>
        <td>4</td>
        <td>4</td>
        <td>0.0%</td>
        <td>143.0</td>
        <td style="color: green; font-weight: bold;">20.88MB/s</td>
        <td>2025-07-04 14:01:29</td>
    </tr>
    <tr>
        <td class="recommended">
            
            <a href="https://zh-hans.ipshu.com/ipv4/104.19.142.154" target="_blank">104.19.142.154</a>
        </td>
        <td>4</td>
        <td>4</td>
        <td>0.0%</td>
        <td>141.0</td>
        <td style="color: green; font-weight: bold;">20.65MB/s</td>
        <td>2025-07-04 13:21:27</td>
    </tr>
    <tr>
        <td class="recommended">
            
            <a href="https://zh-hans.ipshu.com/ipv4/104.18.122.239" target="_blank">104.18.122.239</a>
        </td>
        <td>4</td>
        <td>4</td>
        <td>0.0%</td>
        <td>147.0</td>
        <td style="color: green; font-weight: bold;">19.84MB/s</td>
        <td>2025-07-04 13:56:28</td>
    </tr>
    <tr>
        <td class="recommended">
            
            <a href="https://zh-hans.ipshu.com/ipv4/162.159.245.188" target="_blank">162.159.245.188</a>
        </td>
        <td>4</td>
        <td>4</td>
        <td>0.0%</td>
        <td>143.0</td>
        <td style="color: green; font-weight: bold;">19.78MB/s</td>
        <td>2025-07-04 14:01:29</td>
    </tr>
    <tr>
        <td class="recommended">
            
            <a href="https://zh-hans.ipshu.com/ipv4/172.64.82.28" target="_blank">172.64.82.28</a>
        </td>
        <td>4</td>
        <td>4</td>
        <td>0.0%</td>
        <td>142.0</td>
        <td style="color: green; font-weight: bold;">19.71MB/s</td>
        <td>2025-07-04 13:56:28</td>
    </tr>
    </tbody>
</table>

<script>
    function updateClock() {
        const now = new Date();
        let hours = now.getHours();
        let minutes = now.getMinutes();
        let seconds = now.getSeconds();
        let day = now.getDate();
        let month = now.getMonth() + 1;
        const year = now.getFullYear();

        // 补零
        hours = hours < 10 ? '0' + hours : hours;
        minutes = minutes < 10 ? '0' + minutes : minutes;
        seconds = seconds < 10 ? '0' + seconds : seconds;
        day = day < 10 ? '0' + day : day;
        month = month < 10 ? '0' + month : month;

        // 显示时间和日期
        document.getElementById('clock').innerText = '当前时间：' + year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds + "    CloudflareSpeedTest准实时自选优选IP";
    }

    // 初始加载
    updateClock();
    // 每秒更新一次时钟
    setInterval(updateClock, 1000);
    // 每5分钟刷新一次页面
    setInterval(function () {
        location.reload();
    }, 5 * 60 * 1000); // 5分钟 * 60秒 * 1000毫秒
</script>
<script>
    // 百度统计
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?9b2713b363ad7f0c3c30ab7556936453";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>
</body>
</html>
